import request from '@/utils/request'

// 查询时间段收费列表
export function listParagraph(query) {
  return request({
    url: '/mahjong/paragraph/list',
    method: 'get',
    params: query
  })
}

// 查询时间段收费详细
export function getParagraph(id) {
  return request({
    url: '/mahjong/paragraph/' + id,
    method: 'get'
  })
}

// 新增时间段收费
export function addParagraph(data) {
  return request({
    url: '/mahjong/paragraph',
    method: 'post',
    data: data
  })
}

// 修改时间段收费
export function updateParagraph(data) {
  return request({
    url: '/mahjong/paragraph',
    method: 'put',
    data: data
  })
}

// 删除时间段收费
export function delParagraph(id) {
  return request({
    url: '/mahjong/paragraph/' + id,
    method: 'delete'
  })
}

// 导出时间段收费
export function exportParagraph(query) {
  return request({
    url: '/mahjong/paragraph/export',
    method: 'get',
    params: query
  })
}